<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>创新创业教师管理系统</title>
	<link rel="stylesheet" type="text/css" href="style/all.css">
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="js/main.js"></script>
	<!-- 字体图标 -->
	<script src="plug/font/iconfont.js"></script>
	<!-- 圆点插件 -->
	<script type="text/javascript" src="js/canvas-particle.js"></script>
</head>
<body class="body_bg">
	<div class="bd">
		<div class="main">
			<table>
				<tr>
					<td><img src="./images/logo.png" alt="" class="logo"></td>
				</tr>
				<tr>
					<td>
						<div class="home">
							<svg class="icon" aria-hidden="true">
								<use xlink:href="#icon-seeusero"></use>
							</svg>
						</div>
					</td>
					<td>
						<input type="text" name="user" placeholder="请输入用户名">
					</td>
				</tr>
				<tr>
					<td>
						<div class="home">
							<svg class="icon" aria-hidden="true">
								<use xlink:href="#icon-mima"></use>
							</svg>
						</div>
					</td>
					<td>
						<input type="password" name="password" placeholder="请输入密码">
					</td>
				</tr>
				<tr>
					<td>
						<div class="home">
							<svg class="icon" aria-hidden="true">
								<use xlink:href="#icon-yanzhengma1"></use>
							</svg>
						</div>
					</td>
					<td>
						<input type="text" name="verify" class="verify" placeholder="请输入验证码">
						<img src="./images/verify.png" alt="">
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<button id="btn">登录</button>
						<a href="register.html">注册</a>
					</td>
				</tr>
				<tr><td><p class="warming"></p></td></tr>
			</table>
		</div>
	</div>
	<script type="text/javascript">
		$(function(){
			// 使输入整体居中
			window.onload = function() {doted(); setHeight("bd","main",30);};
			window.onresize = function() {doted(); setHeight("bd","main",30);};

			$("button").attr("disabled","false");

			$("#btn").click(function(){
				alert("登录成功！");
				if( $("input:radio:checked").val()==1){
					document.location.href = "student_item.html";
				}else{
					document.location.href = "student_item_T.html";
				}
			})

			// 点击登录进行验证信息
			$("input").blur(function(){
				if($("input[name='user']").val()==""){
					$(".warming").html("用户名不能为空");
					return false;
				}
				if($("input[name='password']").val()==""){
					$(".warming").html("密码不能为空");
					return false;
				}

				if($("input[name='verify']").val()==""){
					$(".warming").html("验证码不能为空");
					return false;
				}
				$(".warming").html("");
				$("#btn").addClass("btn_h");
				$("button").removeAttr("disabled");
			})		
		})
	</script>
</body>
</html>